﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WpfApp3
{
    /// <summary>
    /// Button1.xaml 的交互逻辑
    /// </summary>
    public partial class Button1 : Window
    {
        public Button1()
        {
            InitializeComponent();
        }
        int value=0;
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            //操作按钮换文字
           // this.btn.Content = "登录";
           value++;
            this.text.Text= value.ToString();
        }

        private void RepeatButton_Click(object sender, RoutedEventArgs e)
        {
            value++;
            this.text.Text = value.ToString();
        }
    }
}
